import api from '@/utils/request'
import type { ApiResponse } from '@/api/types/common'
import type { loginParams, updatePasswordParams, accountParams } from '@/api/types/user'
export function login(data: loginParams): Promise<ApiResponse<any>> {
    return api({
        url: '/user/login',
        method: 'post',
        data: data
    })
}

export function getUserByAccount(data: accountParams): Promise<ApiResponse<any>> {
    return api({
        url: '/user/login',
        method: 'post',
        data: data
    })
}

export function updatePassword(data: updatePasswordParams): Promise<ApiResponse<any>> {
    return api({
        url: '/user/login',
        method: 'post',
        data: data
    })
}
